Drop incomplete html_encrypt option in kml writer (#956)
authorRobert Lipe <robertlipe@users.noreply.github.com>
Thu, 22 Dec 2022 21:24:34 +0000 (15:24 -0600)
committerGitHub <noreply@github.com>
Thu, 22 Dec 2022 21:24:34 +0000 (15:24 -0600)
kml.cc
kml.h

diff --git a/kml.cc b/kml.cc
index e0adc1a406b120224775f00883865d095655c232..9dbe69c4fed0c12a843f5497dc94c7884ff9624f 100644 (file)
--- a/kml.cc
+++ b/kml.cc
@@ -1238,18 +1238,8 @@ QString KmlFormat::kml_geocache_get_logs(const Waypoint* wpt) const
 
     logpart = xml_findfirst(curlog, "groundspeak:text");
     if (logpart) {
-      QString encstr = xml_attribute(logpart->attributes, "encoded");
-      bool encoded = !encstr.startsWith('F', Qt::CaseInsensitive);
-
-      QString s;
-      if (html_encrypt && encoded) {
-        s = rot13(logpart->cdata);
-      } else {
-        s = logpart->cdata;
-      }
-
       r += "<br />";
-      r += s.toHtmlEscaped();
+      r += logpart->cdata.toHtmlEscaped();
     }
 
     r += "</p>";
diff --git a/kml.h b/kml.h
index 3ea9688bf012d285efc443c699bc6001753f3e8f..177e5df7353ce2da9b113c6570bdbbb6f5dd635e 100644 (file)
--- a/kml.h
+++ b/kml.h
@@ -215,7 +215,6 @@ private:
   int max_position_points{};
   int rotate_colors{};
   int line_width{};
-  int html_encrypt{};
   int precision{};
 
   Waypoint* wpt_tmp{nullptr};